package com.fbd.internalcommon.util;

import com.fbd.internalcommon.constant.IdentityConstant;

public class RedisPrefixUtils {

    // 验证码前缀
    private static String verificationCodePrefix = "passenger-verification-code-";
    // token前缀
    private static String tokenKeyPrefix = "token-";

    public static String generatorKeyPhone(String passengerPhone){
        return verificationCodePrefix + passengerPhone;
    }
    public static String generatorKeyToken(String passengerPhone , String tokenType){
        return tokenKeyPrefix + passengerPhone + IdentityConstant.PASSENGER_IDENTITY + tokenType;
    }
}
